/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data.xml_persistence.model;

/*
 * @author ded_end
 */
public class Route {

    private String id;
    private int frequency;
    private int rating;
    private int weeklyPassangers;
    private AirportName departure;
    private AirportName arriving;

    public Route() {
    }

    public Route(String id, int frequency, int rating, int weeklyPassangers, AirportName departure, AirportName arriving) {
        this.id = id;
        this.frequency = frequency;
        this.rating = rating;
        this.weeklyPassangers = weeklyPassangers;
        this.departure = departure;
        this.arriving = arriving;
    }

    public AirportName getArriving() {
        return arriving;
    }

    public void setArriving(AirportName arriving) {
        this.arriving = arriving;
    }

    public AirportName getDeparture() {
        return departure;
    }

    public void setDeparture(AirportName departure) {
        this.departure = departure;
    }

    public int getFrequency() {
        return frequency;
    }

    public void setFrequency(int frequency) {
        this.frequency = frequency;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public int getWeekly_passangers() {
        return weeklyPassangers;
    }

    public void setWeekly_passangers(int weeklyPassangers) {
        this.weeklyPassangers = weeklyPassangers;
    }

    @Override
    public String toString() {
        return "Route{" + "id=" + id + ", frequency=" + frequency + ", rating=" + rating + ", weeklyPassangers=" + weeklyPassangers + ", departure=" + departure + ", arriving=" + arriving + '}';
    }
}
